package com.wd.cloud.applet.entity.commons;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 提供给外部的API接口分页基础参数
 *
 * @author hjx
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseApiPageModel extends BaseApiModel {
    /**
     * 当前页码
     */
    @ApiModelProperty(value = "当前页码",required = true)
    @NotBlank(message = "当前页码不能为空")
    private Integer page;
    /**
     * 每页大小
     */
    @ApiModelProperty(value = "每页大小",required = true)
    @NotBlank(message = "每页大小不能为空")
    private Integer limit;
}
